<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<!-- HTML5 shim for IE8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<![endif]-->


	<link href="__TMPL__/public/assets/themes/{:cmf_get_admin_style()}/bootstrap.min.css" rel="stylesheet">
	<link href="__TMPL__/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
	<link href="__STATIC__/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<!--[if lt IE 9]>
	<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	<style>
		form .input-order {
			margin-bottom: 0px;
			padding: 0 2px;
			width: 42px;
			font-size: 12px;
		}

		form .input-order:focus {
			outline: none;
		}

		.table-actions {
			margin-top: 5px;
			margin-bottom: 5px;
			padding: 0px;
		}

		.table-list {
			margin-bottom: 0px;
		}

		.form-required {
			color: red;
		}
	</style>
	<script type="text/javascript">
		//全局变量
		var RCABase={},GV = {
			ROOT: "__ROOT__/",
			WEB_ROOT: "__WEB_ROOT__/",
			JS_ROOT: "static/js/",
			ver:'{:time()}',
			APP: '{$Request.module}',/*当前应用名*/
			ROOT_JS :  location.origin + '/public/js/',
			STATIC_JS :  "/static/js/"
		};
	</script>
	<script src="__TMPL__/public/assets/js/jquery-1.10.2.min.js"></script>
	<script src="__STATIC__/js/wind.js?v={:time()}"></script>
	<script src="__TMPL__/public/assets/js/bootstrap.min.js"></script>

		<meta charset="utf-8" />
		<title>济南恭德林园落葬服务单</title>
	</head>
	<style scoped="scoped">
		table td{
			padding: 0px;
			width: 20.08mm;
			/* font-size: 4mm; */
			text-align: center;
		}
		table tr{
			overflow: hidden;
		}
		.table-div{
			display: inline-block;vertical-align: top;text-align: right;font-size: 4mm;
		}
	</style>
	<body>
		<table style="width: 241mm;height: 139.7mm;border-collapse: collapse;table-layout:fixed" border="1px">
			<tr>
				<td colspan="12" style="text-align: center;font-size: 6mm;">
					济南恭德林园落葬服务单
				</td>
			</tr>
			<tr>
				<td colspan="9" style="text-align: left;">
					<div class="table-div" style="width: 27mm;">{$year}年</div>
					<div class="table-div" style="width: 27mm;">{$month}月</div>
					<div class="table-div" style="width: 27mm;">{$day}日</div>
				</td>
				<td colspan="3">
					<div style="padding-right: 2mm;">
						<div class="table-div" style="float: right;color: red;">1301330</div>
						<div class="table-div" style="float: right;">NO:</div>
					</div>
					
				</td>
			</tr>
			<tr>
				<td rowspan="3">
					持证人
				</td>
				<td colspan="2" rowspan="3">{$result['buyer_name']}</td>
				<td rowspan="3">
					墓位
				</td>
				<td rowspan="2">
					具体位置
				</td>
				<td rowspan="2" colspan="3">{$result.tomb_region}{$result.tomb_address}</td>
				<td rowspan="3">安葬人</td>
				<td colspan="3">{$burid[0]}</td>
			</tr>
			<tr>
				<td colspan="3">{$burid[1]}</td>
			</tr>
			<tr>
				<td>墓位编号</td>
				<td colspan="3">{$result.tomb_num}</td>
				<td colspan="3">{$burid[2]}</td>
			</tr>
			<tr>
				<td rowspan="4">落葬</td>
				<td rowspan="2">日期</td>
				<td rowspan="2" colspan="2">{$list['buried_date']}</td>
				<td rowspan="2" colspan="4">家庭联系电话</td>
				<td rowspan="2">火化单</td>
				<td rowspan="2">死亡证明</td>
				<td rowspan="2">碑文情况</td>
				<td rowspan="2"></td>
			</tr>
			<tr></tr>
			<tr>
				<td rowspan="2">时间</td>
				<td rowspan="2" colspan="2">{$list['buried_time']}</td>
				<td rowspan="2" colspan="4">{$list['dealer_phone']}</td>
				<td rowspan="2"></td>
				<td rowspan="2"></td>
				<td rowspan="2"></td>
				<td rowspan="2"></td>
			</tr>
			<tr></tr>
			<tr>
				<td rowspan="2">交单时间</td>
				<td rowspan="2"colspan="3">{$list['add_time']}</td>
				<td rowspan="2"colspan="2">接单人</td>
				<td rowspan="2"colspan="2">{$list['user_nickname']}</td>
				<td colspan="3">墓穴</td>
				<td >墓穴状态</td>
			</tr>
			<tr>
				<td></td>
				<td>{$result.tomb_regulation_name}</td>
				<td></td>
				<td>{$result.col_status_name}</td>
			</tr>
			<tr>
				<td></td>
				<td colspan="11"></td>
			</tr>
			<tr>
				<td colspan="2">注册人签字：</td>
				<td colspan="2"></td>
				<td colspan="2">落葬组负责人签字：</td>
				<td colspan="2"></td>
				<td colspan="2">经办人：</td>
				<td colspan="2"></td>
			</tr>
		</table>
		<div class="form-actions" id="button_form" style="width: 241mm;">
			<div class="btn btn-primary print"
				 data-key="1" id="toPrint" data-wm_id="{$result.tomb_id}" data-o_id="{$result.order_id}" ">打印结算单</div>
		</div>

	</body>
</html>
<script type="text/javascript">
	//打印
	$('.print').click(function () {
		document.getElementById("button_form").style.display="none";
		var printData =window.document.body.innerHTML; //获得 div 里的所有 html 数据
		document.body.innerHTML =  printData ;
		window.print();
		//打印结束后，放开隐藏内容
		document.getElementById("button_form").style.display="block";
		window.close();

	})
</script>